package medical.domain.user;

import medical.domain.menu.Menu;
import medical.domain.role.Role;

import java.util.Set;


/**
 * 用户信息实体类
 * @author 演示
 *
 */
public class User {
	/**
	 * 工号
	 */
	private Integer userid;

	private String username;
	/**
	 * 密码
	 */
	private String pwd;
	/**
	 * 姓名
	 */
	private String fullname;
	/**
	 * 用户对应角色列表
	 */
	private Set<Role> roles;


	private Set<Menu> menus;

	private String status;
	
	public User() {
		super();
	}

	public Integer getUserid() {
		return userid;
	}

	public void setUserid(Integer userid) {
		this.userid = userid;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPwd() {
		return pwd;
	}

	public void setPwd(String pwd) {
		this.pwd = pwd;
	}

	public String getFullname() {
		return fullname;
	}

	public void setFullname(String fullname) {
		this.fullname = fullname;
	}

	public Set<Role> getRoles(Set<Role> roleSet) {
		return roles;
	}

	public void setRoles(Set<Role> roles) {
		this.roles = roles;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Set<Menu> getMenus() {
		return menus;
	}

	public void setMenus(Set<Menu> menus) {
		this.menus = menus;
	}

	public User(Integer userid, String username, String pwd, String fullname, Set<Role> roles, String status) {
		this.userid = userid;
		this.username = username;
		this.pwd = pwd;
		this.fullname = fullname;
		this.roles = roles;
		this.status = status;
	}


	public User(Integer userid, String username, String pwd, String fullname, String status) {
		this.userid = userid;
		this.username = username;
		this.pwd = pwd;
		this.fullname = fullname;
		this.status = status;
	}

	public User(String username, String pwd, String fullname, String status) {
		this.username = username;
		this.pwd = pwd;
		this.fullname = fullname;
		this.status = status;
	}

	public User(Integer userid, String username, String pwd, String fullname, Set<Role> roles, Set<Menu> menus, String status) {
		this.userid = userid;
		this.username = username;
		this.pwd = pwd;
		this.fullname = fullname;
		this.roles = roles;
		this.menus = menus;
		this.status = status;
	}
}
